import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/accountAc50',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/accountAc50/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/accountAc50',
    method: 'put',
    data
  })
}

export function getAc50(data) {
  return request({
    url: 'api/accountAc50/getAc50',
    method: 'post',
    data
  })
}

export function toSave(data) {
  return request({
    url: 'api/accountAc50/save',
    method: 'post',
    data
  })
}

export function computerAccount(data) {
  return request({
    url: 'api/accountAc50/computerAccount',
    method: 'post',
    data
  })
}

export function getAc02(data) {
  return request({
    url: 'api/basicAc02/getAc02',
    method: 'post',
    data
  })
}

export default { add, edit, del, getAc50, toSave, getAc02, computerAccount }
